package com.example.test.springdemo.service;

import com.example.test.springdemo.common.Result;
import com.example.test.springdemo.domain.AdminRole;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface AdminRoleListService {

    Result addRole(AdminRole adminRole);

    Result delRole(Long id);

    void updateRole(AdminRole adminRole);

    Integer allResource(Long id, Long... ids);

    Integer allMenus(Long id, Long... ids);

    PageInfo selectRolePage(Integer pageNow, Integer pageSize, String roleName);

    List<AdminRole> roleInfo();

    List<AdminRole> findRoleList(AdminRole adminRole);

    AdminRole findByRoleId(Long id);
}
